<div ms-controller="goodsSelect" class="goods-select">
  <p class="path">您现在的位置为：<span ms-text="@breadcrumb">物品查询</span></p>
  <!--<p class="info">-->
  <!--<img src="img/index/u423.png" alt="" class="title-img"/>-->
  <!--<span class="title">物品查询</span>-->
  <!--</p>-->
  <form class="form-inline" onsubmit="return false">
    <div class="form-group">
      <label for="searchInput">代码/拼音码/名称/规格：</label>
      <input ms-duplex="@searchInput" type="text" class="form-control" id="searchInput" data-duplex-changed="@handleInputSearch"
        maxlength="25" placeholder="">
    </div>
    <div class="form-group">
      <button ms-if="!@showAllGoods" type="button" class="btn btn-primary" ms-click="@back" style="margin-left: 15px">返回
            </button>
    </div>
  </form>
  <div ms-if="@showAllGoods" style="width: 100%;height: 1px;"></div>
  <div class="table-container">
    <table class="table table-bordered" ms-visible="!@showFreshIcon">
      <thead class="thead">
        <tr>
          <th>物品代码</th>
          <th>物品名称</th>
          <th>图片</th>
          <th>规格型号</th>
          <th>计量单位</th>
          <th>最新税后单价</th>
          <th>最新税前单价</th>
          <th>供货单位</th>
          <th>备注</th>
          <th>别名</th>
        </tr>
      </thead>
      <tbody class="tbody">
        <tr ms-for="($index,el) in @goods" ms-class="[((el.canUse || @showAllGoods)?'':'B59DFE')]">
          <td ms-text="el.GoodsCode"></td>
          <td>
            <a href="javascript:;" ms-text="el.GoodsName" ms-class="(!!el.PicturePath && el.PicturePath !== '-999') ? 'showImg' : ''" ms-mouseenter="@handleMouseenter($event,$index)" ms-mouseout="@handleMouseout($event,$index)"></a>
          </td>
          <td ms-text="(!!el.PicturePath && el.PicturePath !== '-999') ?'有':'无'"></td>
          <td ms-text="el.GoodsSpec"></td>
          <td ms-text="el.SplitUnit"></td>
          <td ms-text="el.LatestPrice"></td>
          <td ms-text="el.LatestPrice"></td>
          <td ms-text="el.SupplierName"></td>
          <td ms-text="el.Comment"></td>
          <td></td>
        </tr>
      </tbody>
    </table>
    <!-- 分页插件 -->
    <div id="goodsselectpage"></div>
    <div class="clear"></div>
  </div>

  <div class="footer">
    <span class="result">查询结果：<span ms-text="@count"></span>条</span>
    <div class="color-desc" ms-if="!@showAllGoods">
      <span>颜色说明：</span>
      <ul>
        <li><img src="img/index/u445.png" /><span>不能领用物品</span></li>
      </ul>
    </div>
    <div class="clear"></div>
  </div>
</div>